<template>
    <div>
        <table>
            <tr v-for='i in list' :key="i.id">
                <td >{{i.title}}</td>
                <td v-if='i.status ==2'>审核中</td>
                <td v-else-if='i.status ==3'>审核中</td>
                <td v-else-if='i.status ==1 && i.nexta==0'>审核失败，查看
                    <router-link :to="{name:'editTask',query:{'id':i.id,'wid':i.workid}}">修改</router-link>
                    
                </td>
                <td v-else>待审核</td>
            </tr>
        </table>

    </div>
</template>

<script>
import maxios from '../http/axios'
export default {
    data() {
        return {
            list:[],
            userid:1
        }
    },
    methods: {
         getmytask(){
        
            maxios('taskm','get',{"userid":this.userid}).then(res=>{
              
                this.list = res.list
            })
        },
    },
    created() {
        this.getmytask()
    }
}
</script>

<style scoped>

</style>
